package org.springframework.beans.factory.config;

/**
 * SingletonBeanRegistry
 *
 * @author xiaohei
 */
public interface SingletonBeanRegistry {

    /**
     * SingletonBeanRegistry
     *
     * @param beanName
     * @param singletonObject
     * @return
     */
    void registerSingleton(String beanName, Object singletonObject);


    /**
     * getSingleton
     *
     * @param beanName
     * @return
     */
    Object getSingleton(String beanName);

}
